You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/spec/views/edu_settings/index.html.erb_spec.rb

23 lines
515 B

6 years ago
require 'rails_helper'
RSpec.describe "edu_settings/index", type: :view do
before(:each) do
assign(:edu_settings, [
EduSetting.create!(
:name => "Name",
:value => "Value"
),
EduSetting.create!(
:name => "Name",
:value => "Value"
)
])
end
it "renders a list of edu_settings" do
render
assert_select "tr>td", :text => "Name".to_s, :count => 2
assert_select "tr>td", :text => "Value".to_s, :count => 2
end
end