Sha256: 497250beeebbdb53d8fade8b2fdab47865c2abf2cc0d9c813d2b0ea315ef41c4

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

require 'rails_helper'

module Popolo
  RSpec.describe MembershipsController, type: :controller do
    routes { Engine.routes }

    before :each do
      @membership = FactoryGirl.create(:membership)
    end

    describe 'GET show' do
      it 'assigns the requested membership as @membership' do
        get :show, {id: @membership.to_param}
        expect(assigns(:membership)).to eq(@membership)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
popolo-0.1.1 spec/controllers/popolo/memberships_controller_spec.rb
popolo-0.1.0 spec/controllers/popolo/memberships_controller_spec.rb