Sha256: ececefeb7668debc9cd0a42b04a2b7c875c5f663c65bf6db2d571a1ee42b6aee
Contents?: true
Size: 457 Bytes
Versions: 19
Compression:
Stored size: 457 Bytes
Contents
require 'rails_helper' describe TestController do render_views let(:name) { "name" } subject { get :javascript_bindings, { name: name }} it "renders the view with the correct bindings" do model_name = "TestModel_1" attr_binding = "#{model_name}.name" model_match = subject.body.scan(model_name) attr_match = subject.body.scan(attr_binding) expect(model_match.count).to eq(5) expect(attr_match.count).to eq(4) end end
Version data entries
19 entries across 19 versions & 1 rubygems