Sha256: f25521e4d70f9cd7bf687a289484f14af200048ecec0aff19f41af67bb8dcfa2
Contents?: true
Size: 1014 Bytes
Versions: 9
Compression:
Stored size: 1014 Bytes
Contents
When /^(?:I )?filter for only the species$/ do |table| # table is a Cucumber::Ast::Table sp = table.raw.collect { |row| row[0] } thing = @access || @parser thing.sequence_filter = { :only_species => sp } end When /^(?:I )?filter for blocks with the species$/ do |table| # table is a Cucumber::Ast::Table sp = table.raw.collect { |row| row[0] } @block_filter = { :with_all_species => sp } end When /^(?:I )?filter for blocks with at least (\d+) sequences$/ do |n| @block_filter = { :at_least_n_sequences => n.to_i } end When /^(?:I )?filter for blocks with text size at (least|most) (\d+)$/ do |op, len| constraint = case op when 'least' then :min_size when 'most' then :max_size else raise "bad operator #{op}!" end @block_filter = { constraint => len.to_i} end When /^(?:I )?filter for blocks with text size between (\d+) and (\d+)$/ do |min, max| @block_filter = { :min_size => min.to_i, :max_size => max.to_i } end
Version data entries
9 entries across 9 versions & 1 rubygems