Skip to content

Commit 93151d5

Browse files
committed
Add broken spec
1 parent 74ea2f5 commit 93151d5

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
require 'spec_helper'
22

3-
describe OrganizationsController do
4-
describe '#show' do
5-
let(:organization) { Fabricate(:organization) }
3+
RSpec.describe OrganizationsController do
4+
let(:organization) { Fabricate(:organization) }
5+
let(:member) { Fabricate(:member, organization: organization) }
6+
let(:user) { member.user }
67

8+
describe '#show' do
79
it 'links to new_transfer_path' do
810
get 'show', id: organization.id
911
expect(response.body).to include(
1012
"<a href=\"/transfers/new?destination_account_id=#{organization.account.id}&amp;id=#{organization.id}\">"
1113
)
1214
end
1315
end
16+
17+
describe '#set_current' do
18+
before { login(user) }
19+
20+
it 'stores the given organization as current organization in session' do
21+
post 'set_current', id: organization.id
22+
end
23+
end
1424
end

0 commit comments

Comments
 (0)