Skip to content

Commit e8d0bb6

Browse files
authored
Merge pull request #956 from amatsuda/let_them_not_be_let
Let normal methods not be let
2 parents 6f5fa5b + deebe38 commit e8d0bb6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/system/proposal_spec.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
let!(:session_format) { create(:session_format, name: 'Only format')}
88
let(:session_format2) { create(:session_format, name: '2nd format')}
99

10-
let(:go_to_new_proposal) { visit new_event_proposal_path(event) }
10+
def go_to_new_proposal
11+
visit new_event_proposal_path(event)
12+
end
1113

12-
let(:create_proposal) do
14+
def create_proposal
1315
fill_in 'Title', with: "General Principles Derived by Magic from My Personal Experience"
1416
fill_in 'Abstract', with: "Because certain things happened to me, they will happen in just the same manner to everyone."
1517
fill_in 'proposal_speakers_attributes_0_bio', with: "I am awesome."
@@ -19,7 +21,7 @@
1921
click_button 'Submit'
2022
end
2123

22-
let(:create_invalid_proposal) do
24+
def create_invalid_proposal
2325
fill_in 'proposal_speakers_attributes_0_bio', with: "I am a great speaker!."
2426
fill_in 'Pitch', with: "You live but once; you might as well be amusing. - Coco Chanel"
2527
fill_in 'Details', with: "Plans are nothing; planning is everything. - Dwight D. Eisenhower"

0 commit comments

Comments
 (0)