Sha256: 964f80893bcc264cc7f372012538fa5df09fc2adb74b292f7b81eaa57be0f463

Contents?: true

Size: 525 Bytes

Versions: 11

Compression:

Stored size: 525 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|
	expect(@csl.locales[locale.to_i - 1].terms.length).to eq(term.to_i)
end

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
csl-1.4.5 features/step_definitions/style_steps.rb
csl-1.4.4 features/step_definitions/style_steps.rb
csl-1.4.3 features/step_definitions/style_steps.rb
csl-1.4.2 features/step_definitions/style_steps.rb
csl-1.4.1 features/step_definitions/style_steps.rb
csl-1.4.0 features/step_definitions/style_steps.rb
csl-1.3.2 features/step_definitions/style_steps.rb
csl-1.3.1 features/step_definitions/style_steps.rb
csl-1.3.0 features/step_definitions/style_steps.rb
csl-1.2.3 features/step_definitions/style_steps.rb
csl-1.2.2 features/step_definitions/style_steps.rb