spec/utilities/executable_spec.rb in approvals-0.0.1 vs spec/utilities/executable_spec.rb in approvals-0.0.2
- old
+ new
@@ -1,14 +1,13 @@
require 'approvals/utilities/executable'
describe Approvals::Executable do
- include Approvals
- subject { Executable.new('SELECT 1') }
+ subject { Approvals::Executable.new('SELECT 1') }
its(:inspect) { should eq('SELECT 1') }
it "takes a block" do
- executable = Executable.new('SELECT 1') do |command|
+ executable = Approvals::Executable.new('SELECT 1') do |command|
"execute query: #{command}"
end
executable.on_failure.call('SELECT 1').should eq('execute query: SELECT 1')
end
end