spec/operation_spec.rb in wordnik-0.4.7 vs spec/operation_spec.rb in wordnik-4.06.00
- old
+ new
@@ -32,7 +32,17 @@
@operation.get?.should == false
@operation.http_method = "get"
@operation.get?.should == true
end
end
+
+ describe "positional parameter names" do
+
+ it "returns an empty array if there are no parameters" do
+ @operation.positional_parameter_names.should == ['word']
+ @operation.parameters = []
+ @operation.positional_parameter_names.should == []
+ end
+
+ end
end
\ No newline at end of file