Sha256: af8b39fe6fb28cfef82a6918010247a6e7822cfd90dbdd888c2a349709867b53

Contents?: true

Size: 514 Bytes

Versions: 24

Compression:

Stored size: 514 Bytes

Contents

after :groups do
  first_user = User.friendly.find('first-user')
  unsubscribed_user = User.friendly.find('unsubscribed-user')
  first_group = Group.find_by_title('First Group')
  membered_group = Group.find_by_title('Membered Group')
  unsubscribed_group = Group.find_by_title('Unsubscribed Group')

  unsubscribed_user.unsubscribe_from(first_group)
  unsubscribed_user.unsubscribe_from(membered_group)
  unsubscribed_user.unsubscribe_from(unsubscribed_user)
  first_user.unsubscribe_from(unsubscribed_group)
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
message_train-0.7.6 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.7.5 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.7.3 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.7.2 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.7.1 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.17 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.16 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.15 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.14 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.13 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.12 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.11 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.10 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.9 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.8 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.7 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.6 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.5 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.4 spec/dummy/db/seeds/unsubscribes.seeds.rb
message_train-0.6.3 spec/dummy/db/seeds/unsubscribes.seeds.rb