lib/boty/rspec.rb in boty-0.0.17.1 vs lib/boty/rspec.rb in boty-0.1.0
- old
+ new
@@ -7,12 +7,11 @@
base.instance_eval do
include SlackSupport::Users
before do
@_bot = Boty::Bot.new(
- {"id" => "1234", "name" => "bot"},
- Boty::Session.new
+ {"id" => "1234", "name" => "bot"}
)
class << Boty::Slack.chat
attr_accessor :messages
@@ -22,10 +21,10 @@
end
end
end
let(:bot) {
- Boty::ScriptDSL.new @_bot
+ Boty::DSL.new @_bot
}
end
end
def event(options)