Sha256: 3e9becb41eb8e99fa489bf92187527b14a590a31d7fa7ff1de9ec9264922d985
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
require 'spec_helper' describe 'method call matcher with args' do context "content with call devise" do call = %{ devise :database_authenticatable, :confirmable, :recoverable, :rememberable, :trackable, :validatable } it "should have call to hello" do call.should have_call :devise, :args => [:confirmable, :trackable] call.should_not have_call :devise, :args => [:confirmable, :trackable_ids] end end context "content with call devise" do call = %{ devise :database_authenticatable, confirm_me, :recoverable, "hello" } it "should have call to hello" do call.should have_call :devise, :args => ['#confirm_me', "hello"] call.should_not have_call :devise, :args => ['#hello'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
code-spec-0.2.3 | spec/code-spec/matchers/have_call_args.rb |