Open catmando opened 6 years ago
it "will preserve boolean values correctly" do
mount 'Foo1', foo1: 'no'
class Foo1 < React::Component::Base
param :foo1
def render
Foo2(bool: foo1 == 'yes')
end
end
class Foo2 < React::Component::Base
param :bool
render { (foo && true) ? 'fail' : 'succeed' }
end
end
expect(page).to contain('succeed')
end
Not sure if this was a regression that got fixed or what, but we need to add a test case like this: