Skip to content

Commit 5ce6189

Browse files
committed
csrf test was killing other transport tests
1 parent 705cae1 commit 5ce6189

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ruby/hyper-operation/spec/aaa_run_first/transports_spec.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ def connect(*args)
7474
wait_for_ajax
7575
end
7676

77-
it 'has a anti_csrf_token' do
78-
expect_evaluate_ruby('Hyperstack.anti_csrf_token').to be_present
79-
end
80-
8177
context "Pusher-Fake" do
8278
before(:all) do
8379

@@ -153,7 +149,7 @@ def connect(*args)
153149
Hyperstack.connect_session = true
154150
mount "TestComponent"
155151
evaluate_ruby "Hyperstack.go_ahead_and_connect"
156-
wait_for_ajax rescue nil
152+
wait_for_ajax #rescue nil
157153
evaluate_ruby "MyControllerOp.run(data: 'hello')"
158154
page.should have_content("hello")
159155
end
@@ -345,4 +341,10 @@ def connect(*args)
345341
page.should have_content("hello")
346342
end
347343
end
344+
345+
context 'Misc Tests' do
346+
it 'has a anti_csrf_token' do
347+
expect_evaluate_ruby('Hyperstack.anti_csrf_token').to be_present
348+
end
349+
end
348350
end

0 commit comments

Comments
 (0)