Skip to content

Commit

Permalink
Merge branch 'dev' into 399_remove_infinity_participants
Browse files Browse the repository at this point in the history
  • Loading branch information
Baschdl committed Feb 1, 2017
2 parents 4e273f1 + 1089272 commit 72d10c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/factories/profiles.rb
Expand Up @@ -10,7 +10,7 @@

FactoryGirl.define do
factory :profile do
sequence(:first_name) { |n| "Karl#{n}" }
sequence(:first_name) { "Karl#{rand(1..100)}" }
sequence(:last_name) { |n| "Doe#{n}" }
gender "male"
birth_date 15.years.ago
Expand Down
5 changes: 3 additions & 2 deletions spec/features/event_spec.rb
Expand Up @@ -330,13 +330,14 @@
@users.each do |u|
find(:css, "#selected_ids_[value='#{u.id}']").set(true) if u.id.even?
end
select(I18n.t('events.badges.full_name'))
click_button I18n.t('events.badges.print')
strings = PDF::Inspector::Text.analyze(page.body).strings
@users.each do |u|
if u.id.even?
expect(strings).to include(u.profile.first_name)
expect(strings).to include(u.profile.name)
else
expect(strings).not_to include(u.profile.first_name)
expect(strings).not_to include(u.profile.name)
end
end
end
Expand Down

0 comments on commit 72d10c7

Please sign in to comment.