summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-03 12:35:48 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-10-03 12:56:00 +0200
commit08e71721514a8fad599832c4846b1cfb45b0f12c (patch)
treeb6c11bc3de4a7231c92d9576828e0e061e94be48 /spec
parent12a0f88114b28f7ea721af2ac857822f3bdc16bb (diff)
downloadnorsk-urskog-registrations-08e71721514a8fad599832c4846b1cfb45b0f12c.tar.gz
norsk-urskog-registrations-08e71721514a8fad599832c4846b1cfb45b0f12c.tar.bz2
norsk-urskog-registrations-08e71721514a8fad599832c4846b1cfb45b0f12c.zip
Transform to a Sinatra app
Diffstat (limited to 'spec')
-rw-r--r--spec/registration_spec.rb14
-rw-r--r--spec/spec_helper.rb3
2 files changed, 17 insertions, 0 deletions
diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb
new file mode 100644
index 0000000..1f89321
--- /dev/null
+++ b/spec/registration_spec.rb
@@ -0,0 +1,14 @@
+describe RegistrationApp do
+ include Rack::Test::Methods
+
+ def app
+ RegistrationApp
+ end
+
+ describe 'GET index' do
+ it 'displays the registration form' do
+ get '/'
+ expect(last_response).to be_ok
+ end
+ end
+end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 0000000..c7171e6
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -0,0 +1,3 @@
+require_relative '../registration'
+require 'rspec'
+require 'rack/test'