diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-03 12:35:48 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-03 12:56:00 +0200 |
commit | 08e71721514a8fad599832c4846b1cfb45b0f12c (patch) | |
tree | b6c11bc3de4a7231c92d9576828e0e061e94be48 /spec | |
parent | 12a0f88114b28f7ea721af2ac857822f3bdc16bb (diff) | |
download | norsk-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.rb | 14 | ||||
-rw-r--r-- | spec/spec_helper.rb | 3 |
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' |