Sha256: 5050cc5c407de7806e24b7b4fe4aa22a6cbb61f1afa76b74395ed67a944e4ca1
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' describe "Articles" do let(:valid_params) { { :article => { :title => 'Doh', :content => Faker::Lorem.sentence } } } context "versioning disabled" do specify { PaperTrail.should_not be_enabled } it "should not create a version" do PaperTrail.should be_enabled_for_controller expect { post articles_path(valid_params) }.to_not change(PaperTrail::Version, :count) PaperTrail.should_not be_enabled_for_controller end it "should not leak the state of the `PaperTrail.enabled_for_controller?` into the next test" do PaperTrail.should be_enabled_for_controller end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paper_trail-3.0.1 | spec/requests/articles_spec.rb |