summaryrefslogtreecommitdiffstats
path: root/spec/registration_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/registration_spec.rb')
-rw-r--r--spec/registration_spec.rb43
1 files changed, 1 insertions, 42 deletions
diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb
index 2911f6a..be4e6f7 100644
--- a/spec/registration_spec.rb
+++ b/spec/registration_spec.rb
@@ -38,52 +38,11 @@ describe RegistrationApp do
context 'with a valid registration' do
before :each do
- params = {
- 'name' => 'Imbalance',
- 'city' => 'Oslo',
- 'website' => 'http://imbalance.no',
- 'label' => 'Calculated Imperfection',
- 'shortbio' => 'Thrash metal from Norway',
- 'contact' => {
- 'name' => 'Harald Eilertsen',
- 'addr' => "Gamleveien 13\n1289 Snufstad",
- 'phone' => '98765432',
- 'email' => 'mail@imbalance.no'
- },
- 'members' => {
- '1' => {
- 'name' => 'Harald Eilertsen',
- 'instrument' => 'Bass/Vocals',
- 'age' => ''
- },
- '2' => {
- 'name' => 'Welle',
- 'instrument' => 'Drums',
- 'age' => ''
- },
- '3' => {
- 'name' => 'Thormodr',
- 'instrument' => 'Guitar',
- 'age' => ''
- }
- },
- 'songs' => {
- '1' => {
- 'title' => 'Bestial by Nature',
- 'time' => '02:80',
- 'isrc' => '',
- 'performers' => "Harald Eilertsen\nThormod Steinert\nLars Welle",
- 'composers' => "Harald Eilertsen\nThormod Steinert",
- 'notes' => 'Rævrukkje rum kjurr!'
- }
- }
- }
-
@doc_spy = spy("Prawn::Document")
allow(Prawn::Document).to receive('new') { @doc_spy }
allow(@doc_spy).to receive('render_file')
- post '/submit', 'band' => params
+ post '/submit', 'band' => create_band_params
end
it 'should succeed' do