Sha256: 846e42a6b3088d3c94a2f306e99cdbd1b9a068327a795566cc841e68fd30dba8
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
RSpec.configure do |c| c.order = 'defined' end require 'spec_helper' describe "Articles" do let(:valid_params) { { :article => { :title => 'Doh', :content => Faker::Lorem.sentence } } } context "versioning disabled" do specify { PaperTrail.enabled?.should be_false } it "should not create a version" do PaperTrail.enabled_for_controller?.should be_true expect { post articles_path(valid_params) }.to_not change(PaperTrail::Version, :count) PaperTrail.enabled_for_controller?.should be_false end it "should not leak the state of the `PaperTrail.enabled_for_controlller?` into the next test" do PaperTrail.enabled_for_controller?.should be_true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paper_trail-3.0.0 | spec/requests/articles_spec.rb |