Commit 4edd739

mo khan <mo@mokhan.ca>
2015-02-16 15:34:48
remove hardcoded text from test.
1 parent 8f3e3f7
Changed files (1)
spec/controllers/registrations_controller_spec.rb
@@ -47,7 +47,8 @@ describe RegistrationsController do
 
       it "shows a flash alert" do
         expect(flash[:notice]).to_not be_empty
-        expect(flash[:notice]).to eql("Thank you for registering. Welcome to Supply Crow.")
+        translation = I18n.translate("registrations.create.success")
+        expect(flash[:notice]).to eql(translation)
       end
 
       it "sends a user registration email" do