tack2us/spec/controllers/pastes_controller_spec.rb

25 lines
500 B
Ruby
Raw Normal View History

require 'spec_helper'
describe PastesController do
describe "GET #index" do
it "renders the :index template" do
get :index
expect(response).to render_template("index")
end
end
describe "GET #new" do
it "renders the :new template" do
get :new
expect(response).to render_template("new")
end
end
describe "GET #edit" do
it "renders the :edit template" do
get :edit, id: 1
expect(response).to render_template("edit")
end
end
end