scaffold models

This commit is contained in:
Min Zeya Phyo
2017-04-20 17:01:14 +06:30
parent 0a97947259
commit 0af7d78c3c
145 changed files with 4127 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
require 'rails_helper'
RSpec.describe "settings/lookups/index", type: :view do
before(:each) do
assign(:settings_lookups, [
Settings::Lookup.create!(
:lookup_type => "Lookup Type",
:name => "Name",
:value => "Value"
),
Settings::Lookup.create!(
:lookup_type => "Lookup Type",
:name => "Name",
:value => "Value"
)
])
end
it "renders a list of settings/lookups" do
render
assert_select "tr>td", :text => "Lookup Type".to_s, :count => 2
assert_select "tr>td", :text => "Name".to_s, :count => 2
assert_select "tr>td", :text => "Value".to_s, :count => 2
end
end