25 lines
500 B
Ruby
25 lines
500 B
Ruby
|
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
|