Sha256: c0b53cf9556c98e67c2985a9503be9f99f9c5cf1c296c9497891f3b2854a659f
Contents?: true
Size: 896 Bytes
Versions: 6
Compression:
Stored size: 896 Bytes
Contents
require 'core/spec_helper' describe ZendeskAPI::Trackie do subject { ZendeskAPI::Trackie.new } before(:each) { subject.clear_changes } it "should not be changed" do subject.changed?.should be_false end context "adding keys" do before(:each) { subject[:key] = true } it "should include key in changes" do subject.changes[:key].should be_true end specify "key should be changed" do subject.changed?(:key).should be_true subject.changed?.should be_true end end context "nested hashes" do before(:each) do subject[:key] = ZendeskAPI::Trackie.new subject.clear_changes subject[:key][:test] = true end it "should include changes from nested hash" do subject.changes[:key][:test].should be_true end specify "subject should be changed" do subject.changed?.should be_true end end end
Version data entries
6 entries across 6 versions & 1 rubygems