Sha256: 5d0720a738b844d6d9cc8ac3d97bcdc24c85e2db2487b029c86368a3151f5d3f

Contents?: true

Size: 510 Bytes

Versions: 29

Compression:

Stored size: 510 Bytes

Contents

When /^I load the style from the string$/ do |string|
  @csl = CSL::Style.load string
end

Then /^the locale (\d+) should should have (\d+) terms?$/ do |locale, term|
	@csl.locales[locale.to_i - 1].terms.length.should == term.to_i
end

Then /^the locale (\d+) (\w+\??) should be "([^"]*)"$/ do |locale, method, expected|
  @csl.locales[locale.to_i - 1].send(method).to_s.should == expected
end

Then /^the style should have (\d+) contributors$/ do |num|
  @csl.info.contributors.length.should == num.to_i
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
csl-1.2.1 features/step_definitions/style_steps.rb
csl-1.2.0 features/step_definitions/style_steps.rb
csl-1.1.0 features/step_definitions/style_steps.rb
csl-1.0.2 features/step_definitions/style_steps.rb
csl-1.0.1 features/step_definitions/style_steps.rb
csl-1.0.0 features/step_definitions/style_steps.rb
csl-1.0.0.pre23 features/step_definitions/style_steps.rb
csl-1.0.0.pre22 features/step_definitions/style_steps.rb
csl-1.0.0.pre21 features/step_definitions/style_steps.rb
csl-1.0.0.pre20 features/step_definitions/style_steps.rb
csl-1.0.0.pre19 features/step_definitions/style_steps.rb
csl-1.0.0.pre18 features/step_definitions/style_steps.rb
csl-1.0.0.pre17 features/step_definitions/style_steps.rb
csl-1.0.0.pre16 features/step_definitions/style_steps.rb
csl-1.0.0.pre15 features/step_definitions/style_steps.rb
csl-1.0.0.pre14 features/step_definitions/style_steps.rb
csl-1.0.0.pre13 features/step_definitions/style_steps.rb
csl-1.0.0.pre12 features/step_definitions/style_steps.rb
csl-1.0.0.pre11 features/step_definitions/style_steps.rb
csl-1.0.0.pre10 features/step_definitions/style_steps.rb