# RSpec::Expectations::ExpectationNotMetError

**URL:** <https://discuss.circleci.com/t/rspec-expectations-expectationnotmeterror/20711>\
**Category:** Programming Languages\
**Tags:** ruby\
**Created:** [March 14, 2018, 8:01am UTC](https://discuss.circleci.com/t/rspec-expectations-expectationnotmeterror/20711 "2018-03-14T08:01:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oberon555](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/oberon555/32/9926_2.png) [@oberon555](https://discuss.circleci.com/u/oberon555)\
**Post date:** [March 14, 2018, 8:01am UTC](https://discuss.circleci.com/t/rspec-expectations-expectationnotmeterror/20711/1 "2018-03-14T08:01:13Z")

</div>

Hi All.

I have error when run test cucumber in circleci, but local on my pc all work fine.

When run **bundle exec cucumber -p ci --format junit --out $CIRCLE\_TEST\_REPORTS/cucumber/junit.xml**

I have error:

✘ Admin add and delete api client # features/admin/admin\_clients.feature:4  
Given I am logged in as “kassi\_testperson1” # features/step\_definitions/user\_steps.rb:24  
And I am on main admin page # features/step\_definitions/web\_steps.rb:60  
When I follow “Clients” # features/step\_definitions/web\_steps.rb:84  
And I follow “Add New” # features/step\_definitions/web\_steps.rb:84  
And I press “Save” # features/step\_definitions/web\_steps.rb:72  
Then I should see “Show Delete” # features/step\_definitions/web\_steps.rb:191  
And I follow “Delete” # features/step\_definitions/web\_steps.rb:84  
And I confirm alert popup # features/step\_definitions/web\_steps.rb:287  
Then I should not see “Show Delete” # features/step\_definitions/web\_steps.rb:208

```
  expected #has_no_content?("Show Delete") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
  ./features/step_definitions/web_steps.rb:210:in `block (2 levels) in <top (required)>'
  ./features/step_definitions/web_steps.rb:39:in `with_scope'
  ./features/step_definitions/web_steps.rb:209:in `/^(?:|I )should not see "([^"]*)"(?: within "([^"]*)")?$/'
  features/admin/admin_clients.feature:13:in `Then I should not see "Show Delete"'

```

Any have idea how fix this error?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:33am UTC](https://discuss.circleci.com/t/rspec-expectations-expectationnotmeterror/20711/2 "2018-06-18T11:33:16Z")

</div>


