spec/russian_spec.rb in rs_russian-0.17.0 vs spec/russian_spec.rb in rs_russian-0.18.0
- old
+ new
@@ -122,12 +122,12 @@
it "should raise an exception when there are not enough variants" do
lambda { Russian.send(method, 1) }.should raise_error(ArgumentError)
lambda { Russian.send(method, 1, "вещь") }.should raise_error(ArgumentError)
lambda { Russian.send(method, 1, "вещь", "вещи") }.should raise_error(ArgumentError)
- lambda { Russian.send(method, 1, "вещь", "вещи", "вещей") }.should_not raise_error(ArgumentError)
+ expect { Russian.send(method, 1, "вещь", "вещи", "вещей") }.not_to raise_error
lambda { Russian.send(method, 3.14, "вещь", "вещи", "вещей") }.should raise_error(ArgumentError)
- lambda { Russian.send(method, 3.14, "вещь", "вещи", "вещей", "вещи") }.should_not raise_error(ArgumentError)
+ expect { Russian.send(method, 3.14, "вещь", "вещи", "вещей", "вещи") }.not_to raise_error
end
end
end
end