Lines Matching refs:state
6 Given(/^there is an ontology with a "([^"]+)" version$/) do |state|
7 @ontology_version = FactoryGirl.create :ontology_version, state: state
9 @ontology.state = state
21 When(/^we change the state of the ontology to: (\w+)$/) do |state|
22 @state = state
23 @ontology_version.update_state!(state)
26 Then(/^the page should change the state on its own$/) do
29 Then I should see the "#{@state}" state
33 Then(/^I should see the "([^"]+)" state$/) do |state|
34 el_css = '.evaluation-state'
38 expect(find('span')).to have_content(state)
42 Then(/^I should see the "([^"]+)" state inside of "([^"]+)"$/) do |state, inside|
45 Then I should see the "#{state}" state