Skip to content

Commit

Permalink
Merge c902cc5 into ab372be
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCarlino committed Apr 30, 2015
2 parents ab372be + c902cc5 commit 3ef0ad9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/models/dirty_spec.rb
Expand Up @@ -43,8 +43,12 @@
expect(model.changed?(:name)).to eq(true)

model.clear_tracked_changes!

expect(model.changed?(:name)).to eq(false)

expect(model.changed?).to eq(false)
model._some_other_attr = "Wow!"
expect(model.changed?).to eq(true)

end

it 'should reset changes' do
Expand Down Expand Up @@ -99,4 +103,4 @@
model.revert_changes!
expect(model.attributes).to eq({first: 'Bob', last: 'Smith'})
end
end
end
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Expand Up @@ -13,6 +13,7 @@

SimpleCov.start do
add_filter 'spec/'
add_filter 'lib/volt/page/bindings' # all Opal / Front end stuff.
end
end

Expand Down

0 comments on commit 3ef0ad9

Please sign in to comment.