daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. it 'should create a new snippet' do
  2.     @language = Factory(:language)
  3.     @snippet = Factory(:snippet)
  4.     post 'create', :snippet => { :content => "hola que tal", :language_id => 1 }
  5.     Snippet.stub!(:new).and_return(@snippet1)
  6.     response.should redirect_to(snippet_path(@snippet))
  7.   end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top