]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/spec/spec/story/given_scenario_spec.rb
Removing rspec from svn, as it isn't being used.
[rails.git] / vendor / gems / rspec-1.1.2 / spec / spec / story / given_scenario_spec.rb
diff --git a/vendor/gems/rspec-1.1.2/spec/spec/story/given_scenario_spec.rb b/vendor/gems/rspec-1.1.2/spec/spec/story/given_scenario_spec.rb
deleted file mode 100644 (file)
index a688f88..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-require File.dirname(__FILE__) + '/story_helper'
-
-module Spec
-  module Story
-    describe GivenScenario do
-      it 'should execute a scenario from the current story in its world' do
-        # given
-        class MyWorld
-          attr :scenario_ran
-        end
-        instance = World.create(MyWorld)
-        scenario = ScenarioBuilder.new.to_scenario do
-          @scenario_ran = true
-        end
-        Runner::StoryRunner.should_receive(:scenario_from_current_story).with('scenario name').and_return(scenario)
-        
-        step = GivenScenario.new 'scenario name'
-        
-        # when
-        step.perform(instance, nil)
-        
-        # then
-        instance.scenario_ran.should be_true
-      end
-    end
-  end
-end