Skip to content

Commit

Permalink
updating specs
Browse files Browse the repository at this point in the history
  • Loading branch information
webdestroya committed Aug 23, 2013
1 parent 29d0402 commit 1b8a9dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions spec/lita/handlers/eightball_spec.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
require "spec_helper"

describe Lita::Handlers::Eightball, lita_handler: true do
it { routes_command("Y U NO BLAH").to(:meme_y_u_no) }

it "sets the username and password to nil by default" do
expect(Lita.config.handlers.memegen.username).to be_nil
expect(Lita.config.handlers.memegen.password).to be_nil
end
it { routes_command("8ball").to(:shake) }
it { routes_command("eightball").to(:shake) }
it { routes("!8ball").to(:shake) }

end
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
]
SimpleCov.start { add_filter "/spec/" }

require "lita-memegen"
require "lita-eightball"
require "lita/rspec"

0 comments on commit 1b8a9dd

Please sign in to comment.