Sha256: 54623a44915dd73609ecc54bb956a6950865c2ea9d83fc8cb93a33a9004a3da8
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
require 'spec_helper' RSpec.describe "rake_dashboard/tasks/index.html.erb", type: :view do include RSpecHtmlMatchers before do view.extend RakeDashboard::Engine.routes.url_helpers end before do Dummy::Application.load_tasks end let(:tasks) { Rake::Task.tasks } before do assign(:tasks, tasks) end it "should render tasks in a list" do render expect(rendered).to have_tag("ul") do with_tag "li", count: tasks.length tasks.each do |task| with_tag "li a", text: task.name end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rake_dashboard-0.2.0 | spec/views/rake_dashboard/tasks/index.html.erb_spec.rb |
rake_dashboard-0.1.0 | spec/views/rake_dashboard/tasks/index.html.erb_spec.rb |