spec/punchblock/event/complete_spec.rb in punchblock-0.5.1 vs spec/punchblock/event/complete_spec.rb in punchblock-0.6.0
- old
+ new
@@ -73,8 +73,16 @@
it { should be_instance_of Complete::Error }
its(:name) { should == :error }
its(:details) { should == "Something really bad happened" }
+
+ describe "when setting options in initializer" do
+ subject do
+ Complete::Error.new :details => 'Ooops'
+ end
+
+ its(:details) { should == 'Ooops' }
+ end
end
end
end # Punchblock