Permalink
Browse files

Changes Ruby 1.9 syntax to 1.8 syntax

  • Loading branch information...
vesan committed Jun 17, 2012
1 parent 4888891 commit 9d40ea3dec692bb9fd6243d3f9855f2dfa2ddae1
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/kippt/client_spec.rb
@@ -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
@@ -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)

0 comments on commit 9d40ea3

Please sign in to comment.