Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 18th, 2012  |  syntax: None  |  size: 0.64 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.   def acceptance_sign_in(user)
  2.     visit new_user_session_path
  3.     fill_in 'user_email', :with => user.email
  4.     fill_in 'user_password', :with => '123456'
  5.     click_button 'Sign in'
  6.   end
  7.  
  8.   before do
  9.     @client = FactoryGirl.create :client
  10.     @hosting = FactoryGirl.create :hosting
  11.     @product = FactoryGirl.create :product
  12.     @custom_field = FactoryGirl.create :custom_field
  13.     @value = FactoryGirl.create :value
  14.     @webby = Factory :webby
  15.  
  16.     VCR.use_cassette("login_successful", :record => :new_episodes) do
  17.       VCR.use_cassette("solus_vm_vserver-infoall", :record => :new_episodes) do
  18.         acceptance_sign_in(@client)
  19.       end
  20.     end
  21.   end