Skip to content

Commit 3f06438

Browse files
committed
now testing with pusher 2.0.1
1 parent 6882280 commit 3f06438

31 files changed

+55
-31
lines changed

docs/specs/spec/client-dsl/javascript-components_spec.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,27 @@ class FocusedInput < HyperComponent
100100
page.send_keys 'hello'
101101
expect(find('input#text_2').value).to eq 'hello'
102102
end
103+
104+
it "passing an element" do
105+
mount "App" do
106+
class Reveal < HyperComponent
107+
param :content
108+
render do
109+
BUTTON { "#{@show ? 'hide' : 'show'} me" }
110+
.on(:click) { mutate @show = !@show }
111+
content.render if @show
112+
end
113+
end
114+
class App < HyperComponent
115+
render do
116+
Reveal(content: ~DIV { 'I came from the App' })
117+
end
118+
end
119+
end
120+
expect(find('button').text).to eq 'show me'
121+
expect(page).not_to have_content('I cam from the App')
122+
find('button').click
123+
expect(find('button').text).to eq 'hide me'
124+
expect(page).to have_content('I cam from the App')
125+
end
103126
end

ruby/hyper-model/spec/batch1/column_types/column_type_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def parse(s)
6161
Hyperstack.configuration do |config|
6262
config.transport = :pusher
6363
config.channel_prefix = "synchromesh"
64-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
64+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
6565
end
6666

6767
TypeTest.build_tables #rescue nil

ruby/hyper-model/spec/batch1/misc/self_referencing_belongs_to_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Hyperstack.configuration do |config|
1313
config.transport = :pusher
1414
config.channel_prefix = "synchromesh"
15-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
15+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
1616
end
1717
end
1818

ruby/hyper-model/spec/batch2/alias_attribute_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Hyperstack.configuration do |config|
1515
config.transport = :pusher
1616
config.channel_prefix = "synchromesh"
17-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
17+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
1818
end
1919

2020
end

ruby/hyper-model/spec/batch2/collection_aggregate_methods_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Hyperstack.configuration do |config|
1616
config.transport = :pusher
1717
config.channel_prefix = "synchromesh"
18-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
18+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
1919
end
2020
end
2121

ruby/hyper-model/spec/batch2/default_scope_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Hyperstack.configuration do |config|
1717
config.transport = :pusher
1818
config.channel_prefix = "synchromesh"
19-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
19+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
2020
end
2121
end
2222

ruby/hyper-model/spec/batch2/enum_xspec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Hyperstack.configuration do |config|
1616
config.transport = :pusher
1717
config.channel_prefix = "synchromesh"
18-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
18+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
1919
end
2020
end
2121
before(:step) do

ruby/hyper-model/spec/batch2/has_many_through_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Hyperstack.configuration do |config|
1616
config.transport = :pusher
1717
config.channel_prefix = "synchromesh"
18-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
18+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
1919
end
2020

2121
class ActiveRecord::Base

ruby/hyper-model/spec/batch2/non_ar_aggregations_tbdspec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Hyperstack.configuration do |config|
1515
config.transport = :pusher
1616
config.channel_prefix = "synchromesh"
17-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
17+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
1818
end
1919

2020
User.do_not_synchronize

ruby/hyper-model/spec/batch2/one_to_one_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Hyperstack.configuration do |config|
1616
config.transport = :pusher
1717
config.channel_prefix = "synchromesh"
18-
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
18+
config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret, use_tls: false}.merge(PusherFake.configuration.web_options)
1919
end
2020

2121
class ActiveRecord::Base

0 commit comments

Comments
 (0)