summaryrefslogtreecommitdiffstats
path: root/spec/support
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-10 15:16:13 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-10-10 15:18:54 +0200
commitd9696a5eb4aa8638b757ca95b4cc2a4d5b8ae4f6 (patch)
tree94859f172dbc3ecf831d13aab9263696793df122 /spec/support
parent2b664060f45efd7329b53f87f83cc764a5a53bdb (diff)
downloadnorsk-urskog-registrations-d9696a5eb4aa8638b757ca95b4cc2a4d5b8ae4f6.tar.gz
norsk-urskog-registrations-d9696a5eb4aa8638b757ca95b4cc2a4d5b8ae4f6.tar.bz2
norsk-urskog-registrations-d9696a5eb4aa8638b757ca95b4cc2a4d5b8ae4f6.zip
Reject bands with no name
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/band_factory.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/band_factory.rb b/spec/support/band_factory.rb
index f14caf2..4bf9a15 100644
--- a/spec/support/band_factory.rb
+++ b/spec/support/band_factory.rb
@@ -2,12 +2,13 @@ module BandFactory
def create_band_params(options = {})
opts = {
:songs => 1,
+ :name => 'Band name'
}.merge(options)
num_songs = opts.delete(:songs)
params = {
- 'name' => 'Imbalance',
+ 'name' => opts[:name],
'city' => 'Oslo',
'website' => 'http://imbalance.no',
'label' => 'Calculated Imperfection',