sob (owner)

Revisions

  • 573950 Tue Feb 10 12:53:18 -0800 2009
gist: 61585 Download_button fork
public
Public Clone URL: git://gist.github.com/61585.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
  context "on PUT to Admin::Contacts#spam" do
    setup do
      login_as(:quentin)
      @contact = Factory(:contact)
      put :spam, :id => @contact.id
    end
    
    should_assign_to :contact
    should_set_the_flash_to /success/i
    should_redirect_to 'admin_contacts_path()'
    should_change "@contact.spam?"
  end