Skip to content

Commit

Permalink
finishing renaming all ticketmaster reference to taskmapper
Browse files Browse the repository at this point in the history
  • Loading branch information
cored committed May 9, 2012
1 parent 67878e8 commit bdb8e31
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions spec/project_spec.rb
Expand Up @@ -6,10 +6,6 @@
describe "Projects" do
let(:tm) { TaskMapper.new(:dummy, {}) }
let(:project_class) { TaskMapper::Provider::Dummy::Project }
before(:each) do
@ticketmaster = TaskMapper.new(:dummy, {})
@project_class = TaskMapper::Provider::Dummy::Project
end

describe "with a connection to a provider" do
context "when #projects" do
Expand Down
2 changes: 1 addition & 1 deletion spec/rcov.opts
@@ -1 +1 @@
--exclude "lib/ticketmaster/dummy/*,spec/*,gems/*"
--exclude "lib/taskmapper/dummy/*,spec/*,gems/*"
8 changes: 4 additions & 4 deletions spec/taskmapper-cli_spec.rb
Expand Up @@ -6,10 +6,10 @@

# Tests for the cli
# I'm not quite sure what the most effective way to test this is...
describe "Ticketmaster CLI" do
describe "TaskMapper CLI" do
before(:all) do
@ticket = File.expand_path(File.dirname(__FILE__) + '/../bin/tm')
@cli_dir = File.expand_path(File.dirname(__FILE__) + '/../lib/ticketmaster/cli')
@cli_dir = File.expand_path(File.dirname(__FILE__) + '/../lib/taskmapper/cli')
end

it "should output help if no command given" do
Expand All @@ -35,7 +35,7 @@
describe :generate do
it "should generate provider skeleton w/o runtime errors" do
provider_name = "test-provider"
expected_name = "ticketmaster-#{provider_name}"
expected_name = "taskmapper-#{provider_name}"
begin
generate = `#{@ticket} generate #{provider_name}`
$?.should == 0
Expand All @@ -45,7 +45,7 @@
end
end

it "should not prefix 'ticketmaster' when not asked to" do
it "should not prefix 'taskmapper' when not asked to" do
provider_name = "test-provider"
begin
generate = `#{@ticket} generate _#{provider_name}`
Expand Down
2 changes: 1 addition & 1 deletion spec/taskmapper-exception_spec.rb
Expand Up @@ -2,7 +2,7 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'rubygems'
require 'ticketmaster'
require 'taskmapper'

describe "TaskMapper Exception Messages" do
let(:exception) { TaskMapper::Exception }
Expand Down
2 changes: 1 addition & 1 deletion spec/taskmapper_spec.rb
Expand Up @@ -4,7 +4,7 @@
# Just replace the Dummy in @project_class and @ticket_class
# Also, remember to mock or stub any API calls
describe TaskMapper do
context "when calling new it should always return a ticketmaster instance" do
context "when calling new it should always return a taskmapper instance" do
subject { TaskMapper.new(:dummy, {}) }
it { should be_an_instance_of TaskMapper }
it { should be_a_kind_of TaskMapper::Provider::Dummy }
Expand Down

0 comments on commit bdb8e31

Please sign in to comment.