spec/net/ip/route_spec.rb in net-ip-0.0.4 vs spec/net/ip/route_spec.rb in net-ip-0.0.5
- old
+ new
@@ -2,6 +2,10 @@
describe Net::IP::Route do
it "should be creatable" do
Net::IP::Route.new.should be_kind_of(Net::IP::Route)
end
+
+ it "should be convert to_params" do
+ Net::IP::Route.new(:dev => 'eth0').to_params.should eql("dev eth0 ")
+ end
end