daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 55 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
Top