Sha256: 526689316e76a939fa66ba6c644d18c4abee7913b82e647b8382a3e2025f0595
Contents?: true
Size: 895 Bytes
Versions: 2
Compression:
Stored size: 895 Bytes
Contents
require 'spec_helper' describe 'Organization Create' do def create_organization(attributes = {}) attributes = { :name => "Nike", :description => "<h1>Nike Shoes</h1>", :website => "http://nike.com", }.merge(attributes) board.organizations.create(attributes) end context 'when valid' do use_vcr_cassette "organization create is valid" it 'creates the organization' do organization = create_organization organization.id.should_not be_blank organization.name.should == "Nike" organization.description.should == "<h1>Nike Shoes</h1>" organization.website.should == "http://nike.com" end end context 'when invalid' do use_vcr_cassette "organization create is invalid" it 'raises an error' do expect { create_organization(:name => nil) }.to raise_error end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
board-client-0.99.1 | spec/integration/organizations/create_spec.rb |
board-client-0.99.0 | spec/integration/organizations/create_spec.rb |