Sha256: c9506f62585260375edae8e414ce384091450a52d74ac9d103ab2c67943717bc
Contents?: true
Size: 916 Bytes
Versions: 2
Compression:
Stored size: 916 Bytes
Contents
require 'spec_helper' require 'test_components' require 'reactive_record_factory' require 'rspec-steps' RSpec::Steps.steps 'DummyValue', js: true do before(:step) do # spec_helper resets the policy system after each test so we have to setup # before each test # stub_const 'TestApplication', Class.new # stub_const 'TestApplicationPolicy', Class.new # TestApplicationPolicy.class_eval do # always_allow_connection # regulate_all_broadcasts { |policy| policy.send_all } # allow_change(to: :all, on: [:create, :update, :destroy]) { true } # end size_window(:small, :portrait) end it 'works with string interpolation (defines a JS .toString method)' do expect_evaluate_ruby do column_hash = { default: 'foo', sql_type_metadata: { type: 'text' } } "value = #{ReactiveRecord::Base::DummyValue.new(column_hash)}" end.to eq('value = foo') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyper-mesh-0.6.0 | spec/batch1/aaa-unit_tests/dummy_value_spec.rb |
hyper-mesh-0.5.4 | spec/batch1/aaa-unit_tests/dummy_value_spec.rb |