Sha256: 38b064c4a8a1f42f610096b5eb88f9c693398f89b7aeb7bb321e76d1e8179557
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
def migrate_up migrate :string_many end require 'active_record_helper' require 'troles_spec' User.troles_strategy :string_many User.valid_roles = [:user, :admin, :blogger] describe Troles::Common::Marshaller::Generic do let(:kris) { Factory.create :user, :troles => 4} let(:marshaller) { Troles::Common::Marshaller::Generic.new kris } specify { marshaller.role_subject.should == kris } specify { marshaller.valid_roles.should == [:user, :admin, :blogger] } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
troles-0.6.1 | spec/troles/marshaller/generic_spec.rb |
troles-0.6.0 | spec/troles/marshaller/generic_spec.rb |