Skip to content

Instantly share code, notes, and snippets.

@aselder
Created March 29, 2016 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aselder/3f7aa4199efd6a2b6e01fab009e4b7b2 to your computer and use it in GitHub Desktop.
Save aselder/3f7aa4199efd6a2b6e01fab009e4b7b2 to your computer and use it in GitHub Desktop.
require 'spec_helper'
class ATesterDashboardController < TesterDashboard::ApplicationController
def index
render text: 'yes'
end
end
describe ATesterDashboardController do
context "logged in as a tester" do
before :each do
@user = FactoryGirl.create(:tester)
sign_in @user
end
it "should render index properly" do
get :index
expect(response.body).to eq('yes')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment