Sha256: 2842532bd60e222395890ba4ef9722ff7083379c7ab80edd1c2849a05ac62016

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

require 'spec_helper'

describe Commands::Bug do

  before(:each) do
    # stub out git config requests
    Commands::Bug.any_instance.stubs(:get).with { |v| v =~ /git config/ }.returns("")

    @bug = Commands::Bug.new
  end
  
  it "should specify its story type" do
    @bug.type.should == "bug"
  end
  
  it "should specify a plural for its story types" do
    @bug.plural_type.should == "bugs"
  end
  
  it "should specify its branch suffix" do
    @bug.branch_suffix.should == "bugfix"
  end
  
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
git-pivotal-tracker-centro-1.0.0.rc3 spec/commands/bug_spec.rb
git-pivotal-tracker-centro-1.0.0.rc2 spec/commands/bug_spec.rb
git-pivotal-tracker-centro-1.0.0.rc1 spec/commands/bug_spec.rb
git-pivotal-tracker-0.9.1 spec/commands/bug_spec.rb
git-pivotal-tracker-0.9.0 spec/commands/bug_spec.rb
git-pivotal-0.8.2 spec/commands/bug_spec.rb
git-pivotal-0.8.0 spec/commands/bug_spec.rb