spec/ticketmaster-cli_spec.rb in ticketmaster-0.3.4 vs spec/ticketmaster-cli_spec.rb in ticketmaster-0.3.6

- old
+ new

@@ -6,17 +6,17 @@ Spec::Runner.configure do |config| end # Tests for the cli # I'm not quite sure what the most effective way to test this is... describe "Ticketmaster CLI" do before(:all) do - @ticket = File.dirname(__FILE__) + '/../bin/ticket' + @ticket = File.dirname(__FILE__) + '/../bin/tm' @cli_dir = File.dirname(__FILE__) + '/../lib/ticketmaster/cli' end it "should output help if no command given" do help = `#{@ticket}` $?.should == 0 - help.should include('Usage: ticket [options] COMMAND [command_options]') + help.should include('Usage: tm [options] COMMAND [command_options]') end it "should be able to show help pages" do `#{@ticket} help`.should include(File.read(@cli_dir + '/commands/help/help')) `#{@ticket} help config`.should include(File.read(@cli_dir + '/commands/help/config'))