summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-10 14:29:57 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-10-10 14:29:57 +0200
commite95f4cf46ed0047083fb3825de02416ab7340feb (patch)
tree4f40a09641af626a6915126aee6261ca92e965e0 /spec
parentfb75745861211fb55f8a3fb6a5a257d40f0b00a1 (diff)
downloadnorsk-urskog-registrations-e95f4cf46ed0047083fb3825de02416ab7340feb.tar.gz
norsk-urskog-registrations-e95f4cf46ed0047083fb3825de02416ab7340feb.tar.bz2
norsk-urskog-registrations-e95f4cf46ed0047083fb3825de02416ab7340feb.zip
Add parens to avoid some jEdit warnings.
Diffstat (limited to 'spec')
-rw-r--r--spec/registration_spec.rb52
1 files changed, 26 insertions, 26 deletions
diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb
index 33df205..4b27bbe 100644
--- a/spec/registration_spec.rb
+++ b/spec/registration_spec.rb
@@ -18,15 +18,15 @@ describe RegistrationApp do
end
it 'displays the registration form' do
- expect(last_response.body).to match /form id="registration-form"/
+ expect(last_response.body).to match(/form id="registration-form"/)
end
it 'displays the add member button' do
- expect(last_response.body).to match /id="add-member-button"/
+ expect(last_response.body).to match(/id="add-member-button"/)
end
it 'displays the add song button' do
- expect(last_response.body).to match /id="add-song-button"/
+ expect(last_response.body).to match(/id="add-song-button"/)
end
end
@@ -47,26 +47,26 @@ describe RegistrationApp do
end
it 'displays submitted data to user' do
- expect(last_response).to match /Bandnavn\: Imbalance/
- expect(last_response).to match /Hjemsted\: Oslo/
- expect(last_response).to match /Webside\: http\:\/\/imbalance.no/
- expect(last_response).to match /Plateselskap\: Calculated Imperfection/
- expect(last_response).to match /Kort bio\: Thrash metal from Norway/
-
- expect(last_response).to match /Kontaktperson: Harald Eilertsen/
- expect(last_response).to match /Kontaktadresse: Gamleveien 13\n1289 Snufstad/
- expect(last_response).to match /Telefon: 98765432/
- expect(last_response).to match /Epost: mail@imbalance\.no/
-
- expect(last_response).to match /Harald Eilertsen, Bass\/Vocals/
- expect(last_response).to match /Welle, Drums/
- expect(last_response).to match /Thormodr, Guitar/
-
- expect(last_response).to match /Bestial by Nature/
- expect(last_response).to match /Spilletid: 02:80/
- expect(last_response).to match /Utøvere: Harald Eilertsen, Thormod Steinert, Lars Welle/
- expect(last_response).to match /Låtskrivere: Harald Eilertsen, Thormod Steinert/
- expect(last_response).to match /Merknad: Rævrukkje rum kjurr!/
+ expect(last_response).to match(/Bandnavn\: Imbalance/)
+ expect(last_response).to match(/Hjemsted\: Oslo/)
+ expect(last_response).to match(/Webside\: http\:\/\/imbalance.no/)
+ expect(last_response).to match(/Plateselskap\: Calculated Imperfection/)
+ expect(last_response).to match(/Kort bio\: Thrash metal from Norway/)
+
+ expect(last_response).to match(/Kontaktperson: Harald Eilertsen/)
+ expect(last_response).to match(/Kontaktadresse: Gamleveien 13\n1289 Snufstad/)
+ expect(last_response).to match(/Telefon: 98765432/)
+ expect(last_response).to match(/Epost: mail@imbalance\.no/)
+
+ expect(last_response).to match(/Harald Eilertsen, Bass\/Vocals/)
+ expect(last_response).to match(/Welle, Drums/)
+ expect(last_response).to match(/Thormodr, Guitar/)
+
+ expect(last_response).to match(/Bestial by Nature/)
+ expect(last_response).to match(/Spilletid: 02:80/)
+ expect(last_response).to match(/Utøvere: Harald Eilertsen, Thormod Steinert, Lars Welle/)
+ expect(last_response).to match(/Låtskrivere: Harald Eilertsen, Thormod Steinert/)
+ expect(last_response).to match(/Merknad: Rævrukkje rum kjurr!/)
end
it "generates a PDF file" do
@@ -78,7 +78,7 @@ describe RegistrationApp do
message = Mail::TestMailer.deliveries.first
expect(Mail::TestMailer.deliveries).not_to be_empty
expect(message.to).to include('haraldei@anduin.net')
- expect(message.subject).to match /Registrering av band Imbalance til Norsk Urskog/
+ expect(message.subject).to match(/Registrering av band Imbalance til Norsk Urskog/)
end
end
@@ -88,11 +88,11 @@ describe RegistrationApp do
end
it 'should reject request and go back to the registration form' do
- expect(last_response.body).to match /form id="registration-form"/
+ expect(last_response.body).to match(/form id="registration-form"/)
end
it 'should display an error message' do
- expect(last_response.body).to include "Du må ha med minst én låt"
+ expect(last_response.body).to include("Du må ha med minst én låt")
end
end
end