spec/hornsby_spec.rb in sinsiliux-hornsby-0.4.0 vs spec/hornsby_spec.rb in sinsiliux-hornsby-0.4.1
- old
+ new
@@ -1,8 +1,14 @@
require File.dirname(__FILE__) + '/spec_helper'
describe Hornsby do
+ describe "scenario files" do
+ it "should be loaded from specified dirs" do
+ Hornsby::SCENARIO_FILES.should == ["hornsby_scenarios.rb", "hornsby_scenarios/*.rb", "hornsby_scenario.rb", "hornsby_scenario/*.rb", "spec/hornsby_scenarios.rb", "spec/hornsby_scenarios/*.rb", "spec/hornsby_scenario.rb", "spec/hornsby_scenario/*.rb", "test/hornsby_scenarios.rb", "test/hornsby_scenarios/*.rb", "test/hornsby_scenario.rb", "test/hornsby_scenario/*.rb"]
+ end
+ end
+
describe "with just_apple scenario" do
before do
hornsby_scenario :just_apple
end
@@ -182,6 +188,7 @@
# it "should have @peach" do
# @peach.species.should == 'peach'
# end
#end
-end
\ No newline at end of file
+end
+