spec/socialcast/command_line/cli_spec.rb in socialcast-1.3.4 vs spec/socialcast/command_line/cli_spec.rb in socialcast-1.3.5

- old
+ new

@@ -14,9 +14,27 @@ before do Socialcast::CommandLine.stub(:credentials).and_return(credentials) end + describe '#info' do + before do + Socialcast::CommandLine::CLI.any_instance.should_receive(:say).with("Socialcast Command Line #{Socialcast::CommandLine::VERSION}") + end + context '--version' do + before do + Socialcast::CommandLine::CLI.start ["--version"] + end + it "prints the version" do end + end + context '-v' do + before do + Socialcast::CommandLine::CLI.start ["-v"] + end + it "prints the version" do end + end + end + describe '#share' do # Expects -u=emily@socialcast.com -p=demo --domain=demo.socialcast.com context 'with a basic message' do before do stub_request(:post, "https://ryan%40socialcast.com:foo@test.staging.socialcast.com/api/messages.json").