Sha256: c216568920a460593524ee0a9719204f34e6864b516caf028053d3ac100955d1
Contents?: true
Size: 851 Bytes
Versions: 3
Compression:
Stored size: 851 Bytes
Contents
require "spec_helper" describe "rails-hyperstack" do it "builds a working app", js: true do visit "/" expect(page).to have_content("App") end it "installs hyper-model and friends", js: true do visit "/" expect do Hyperstack::Model.load { Sample.count } end.on_client_to eq(0) on_client do Sample.create(name: "sample1", description: "the first sample") end wait_for_ajax expect(Sample.count).to eq(1) expect(Sample.first.name).to eq("sample1") expect(Sample.first.description).to eq("the first sample") expect { Sample.count }.on_client_to eq(1) end it "implements server_side_auto_require", js: true do expect(Sample.super_secret_server_side_method).to be true expect do Sample.respond_to? :super_secret_server_side_method end.on_client_to be_falsy end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails-hyperstack-1.0.alpha1.8 | spec/rails_hyperstack_spec.rb |
rails-hyperstack-1.0.alpha1.7 | spec/rails_hyperstack_spec.rb |
rails-hyperstack-1.0.alpha1.6 | spec/rails_hyperstack_spec.rb |