Browse code

FIX: tests

Cinan Rakosnik authored on 24/02/2013 at 16:01:07
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@ describe "Authentication" do
15 15
 		before { visit signin_path }
16 16
 
17 17
 		describe "with invalid information" do
18
-			before { click_button "Send" }
18
+			before { click_button I18n.t("sessions.new.form-send") }
19 19
 
20 20
 			it { should have_title('Login') }
21 21
 			it { should have_selector('div.alert.alert-error', text: 'Invalid') }
... ...
@@ -25,7 +25,7 @@ describe "Authentication" do
25 25
 			before do
26 26
 				fill_in "jid",      with: 'bakalar@jabbim.cz'
27 27
 				fill_in "password", with: 'tralala'
28
-				click_button "Send"
28
+				click_button I18n.t("sessions.new.form-send")
29 29
 			end
30 30
 
31 31
 			#it { should have_title(user.name) }