spec/egn/generator_spec.rb in egn-0.4.0 vs spec/egn/generator_spec.rb in egn-1.0.0
- old
+ new
@@ -51,10 +51,10 @@
it "validates the options" do
options = {year: 1960, month: 6, day: 3}
- Egn::Generator.should_receive(:validate!).with(options)
+ Egn::Generator.any_instance.should_receive(:validate!).with(options)
Egn::Generator.generate(options)
end