Assert the environment the page says the app runs in: the "Environment:" line of the welcome page's footer, or of the banner of the debug page. "production" is how a live app runs; "development" shows the debug toolbar and the debug page.
Examples
Then the page should say it runs in the "production" environment
Then the page should say it runs in the "development" environment
And the page should say it runs in the "production" environment
Then the page should say it runs in the "testing" environment
But the page should say it runs in the "production" environment
Pattern
Then(/^the page should say it runs in the "([^"]*)" environment$/, …)
Part of @webship-js/codeigniter-steps (github.com/webship/codeigniter-steps), a step pack for Webship-js 2.0.x.