diff options
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' |