Skip to content

Commit

Permalink
mais, mais, mais
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Oct 13, 2009
1 parent 5d7a19d commit 933cbe7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Binary file modified RSpecTips.key
Binary file not shown.
20 changes: 20 additions & 0 deletions code/matchers/mock_arguments.rb
@@ -1,2 +1,22 @@
require 'spec_helper'

class Glass; end

class Cachaça; end

Spec::Matchers.define :cachaça do
match do |actual|
Cachaça === actual
end
end

describe "glass" do
context "when empty" do
it "should be filled with cachaça" do
glass = Glass.new
glass.should_receive(:fill).with(cachaça)
glass.fill(Cachaça.new)
end
end
end

0 comments on commit 933cbe7

Please sign in to comment.