Sha256: 5bc412ef8a5c3927c5b073832a422dda7b9f4a1ac3c2424466ac4723502302af
Contents?: true
Size: 689 Bytes
Versions: 4
Compression:
Stored size: 689 Bytes
Contents
require 'rails_helper' RSpec.describe BunnyController, :type => :controller do describe "GET one" do it "returns http success" do get :one expect(response).to have_http_status(:success) expect(assigns(:bunny)).to eq("one") end end describe "GET two" do it "returns http success" do get :two expect(response).to have_http_status(:success) expect(assigns(:bunny)).to eq("two-around two- -single-responsibility- -around two-") end end describe "GET three" do it "returns http success" do get :three expect(response).to have_http_status(:success) expect(assigns(:bunny)).to eq("three") end end end
Version data entries
4 entries across 4 versions & 1 rubygems