From 08e71721514a8fad599832c4846b1cfb45b0f12c Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 3 Oct 2015 12:35:48 +0200 Subject: Transform to a Sinatra app --- spec/registration_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 spec/registration_spec.rb (limited to 'spec/registration_spec.rb') 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 -- cgit v1.2.3