spec/payment_spec.rb in slidepay-0.0.9 vs spec/payment_spec.rb in slidepay-0.0.10

- old
+ new

@@ -1,16 +1,17 @@ require "slidepay" require "spec_helper" describe SlidePay::Payment do - describe "class constants" do + describe "class instance variables" do it "should include an id_attribute" do - expect(SlidePay::Payment::ID_ATTRIBUTE).to eq("payment_id") + expect(SlidePay::Payment.id_attribute).to eq("payment_id") end it "should include a root url" do - expect(SlidePay::Payment::URL_ROOT).to eq("payment") + expect(SlidePay::Payment.url_root).to eq("payment") end + end it "should have an id_attribute" do p = SlidePay::Payment.new() expect(p.id_attribute).to eq("payment_id") \ No newline at end of file