Sha256: a97c01db8d66841df09f16d237e92bc24bc6fa8b02be30c95df5a80e871d6893
Contents?: true
Size: 448 Bytes
Versions: 16
Compression:
Stored size: 448 Bytes
Contents
Given /^an area named "([^\"]*)"$/ do |name| # WORKAROUND: get rid of area query. Don't know why it doesn't work without (e.g. /roles/2_users/projects.feature) @area = Area.where(name: name).first || Factory(:area, name: name) @area.reload end Then /^I should see the following areas:$/ do |expected_table| rows = find("table").all('tr') table = rows.map { |r| r.all('th,td').map { |c| c.text.strip } } expected_table.diff!(table) end
Version data entries
16 entries across 16 versions & 1 rubygems