Skip to content

Commit

Permalink
Add a model spec to test attr_accessible.
Browse files Browse the repository at this point in the history
  • Loading branch information
acmetech committed Mar 18, 2012
1 parent 54e3d76 commit 1bb7800
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/models/flagging_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'spec_helper'

describe Flagging do
describe "attributes should be white listed" do
it { should allow_mass_assignment_of(:flaggable) }
it { should allow_mass_assignment_of(:flagger) }
it { should allow_mass_assignment_of(:flag) }
end
end

0 comments on commit 1bb7800

Please sign in to comment.