Skip to content

Commit

Permalink
First specs passing.
Browse files Browse the repository at this point in the history
  • Loading branch information
intinig committed Dec 11, 2013
1 parent 04041e9 commit 2de8ef5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lol.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require "lol/client"
require __dir__ + "/lol/client"
6 changes: 6 additions & 0 deletions lib/lol/client.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module Lol
class Client
# Initializes a Lol::Client
# @param [String]
# @return [Lol::Client]
def initialize api_key
@api_key = api_key
end
end
end
2 changes: 1 addition & 1 deletion spec/lol/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
describe Client do
describe "#new" do
it "requires an API key argument" do
expect { Proc.new { Client.new } }.to raise_error
expect { Client.new }.to raise_error(ArgumentError)
end
end
end

0 comments on commit 2de8ef5

Please sign in to comment.