1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
context "when doing something to an item" do
  setup do
    @item = MyItem.new
  end

  specify "should mark the item as denied" do
    @item.deny
    @item.denied.should be_true
  end

  specify "should save the item automagically" do
    @item.should_receive(:save)
    @item.deny
  end

end