Last active
August 29, 2015 14:04
-
-
Save domgetter/0f1ce2f0373a3bc7887e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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