Skip to content

Commit

Permalink
Changes Ruby 1.9 syntax to 1.8 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
vesan committed Jun 17, 2012
1 parent 4888891 commit 9d40ea3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/kippt/client_spec.rb
Expand Up @@ -6,15 +6,15 @@
context "when there is no username" do
it "raises error" do
lambda {
Kippt::Client.new(password: "secret")
Kippt::Client.new(:password => "secret")
}.should raise_error(ArgumentError, "username is required")
end
end

context "when there is no password or token" do
it "raises error" do
lambda {
Kippt::Client.new(username: "vesan")
Kippt::Client.new(:username => "vesan")
}.should raise_error(ArgumentError, "password or token is required")
end
end
Expand Down Expand Up @@ -50,7 +50,7 @@

it "returns a Kippt::Account instance" do
subject.should_receive(:get).with("account").and_return(
stub body: {}
stub :body => {}
)
account = subject.account
account.should be_a(Kippt::Account)
Expand Down

0 comments on commit 9d40ea3

Please sign in to comment.