spec/cucumber/constantize_spec.rb in cucumber-1.1.9 vs spec/cucumber/constantize_spec.rb in cucumber-1.2.0
- old
+ new
@@ -6,7 +6,11 @@
it "loads html formatter" do
clazz = constantize('Cucumber::Formatter::Html')
clazz.name.should == 'Cucumber::Formatter::Html'
end
+
+ it "fails to load a made up class" do
+ expect { constantize('My::MadeUp::ClassName') }.to raise_error(LoadError)
+ end
end
-end
\ No newline at end of file
+end