mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-10 21:46:16 +10:00
22 lines
544 B
Ruby
22 lines
544 B
Ruby
require 'spec_helper'
|
|
require 'paperclip/matchers'
|
|
|
|
describe Team do
|
|
|
|
before(:each) do
|
|
@person = Person.create_for_email 'test@thoughworks.com'
|
|
@team = @person.teams.create(name: 'LSP', slug: 'lsp')
|
|
@organisation = Organisation.create(name: 'Google', domains: 'google.com')
|
|
end
|
|
|
|
describe :add_to_organisation do
|
|
|
|
it 'ensure when a team add an organisation ,the organisations will change by 1' do
|
|
|
|
@team.add_to @organisation
|
|
@team.organisations.include?(@organisation).should == true
|
|
end
|
|
|
|
end
|
|
|
|
end |