Sha256: 6f4362fa80e3cbf4ce69897dc42ad08ce9463e4a1f6ecba41db745e2180af2bf

Contents?: true

Size: 256 Bytes

Versions: 10

Compression:

Stored size: 256 Bytes

Contents

require 'spec_helper'

describe AddProject do
  it 'adds new project to the database' do
    name = stub(:name)
    project = stub(:project)
    Project.should_receive(:create).with(name: name) { project }
    subject.call(name).should == project
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
techcor-0.0.10 spec/lib/commands/add_project_spec.rb
techcor-0.0.9 spec/lib/commands/add_project_spec.rb
techcor-0.0.8 spec/lib/commands/add_project_spec.rb
techcor-0.0.7 spec/lib/commands/add_project_spec.rb
techcor-0.0.6 spec/lib/commands/add_project_spec.rb
techcor-0.0.5 spec/lib/commands/add_project_spec.rb
techcor-0.0.4 spec/lib/commands/add_project_spec.rb
techcor-0.0.3 spec/lib/commands/add_project_spec.rb
techcor-0.0.2 spec/lib/commands/add_project_spec.rb
techcor-0.0.1 spec/lib/commands/add_project_spec.rb