Skip to content

Instantly share code, notes, and snippets.

@domgetter
Last active August 29, 2015 14:04
Show Gist options
  • Save domgetter/0f1ce2f0373a3bc7887e to your computer and use it in GitHub Desktop.
Save domgetter/0f1ce2f0373a3bc7887e to your computer and use it in GitHub Desktop.
require 'rails_helper'
RSpec.describe UsersController, :type => :controller do
describe "GET 'index'" do
it "returns http success" do
get 'index'
expect(response).to be_success
end
end
describe "GET 'show'" do
it "returns http fail" do
get 'show'
puts "hahahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
binding.pry
expect(response).to be_fail
end
end
describe "GET 'new'" do
it "returns http success" do
get 'new'
expect(response).to be_success
end
end
describe "GET 'edit'" do
it "returns http success" do
get 'edit'
expect(response).to be_success
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment