To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorSystem spec
System specs are RSpec's wrapper around Rails' own
system tests.
We encourage you to familiarse yourself with their documentation.
RSpec does not use your ApplicationSystemTestCase
helper. Instead it uses
the default driven_by(:selenium)
from Rails. If you want to override this
behaviour you can call driven_by
manually in a test.
- Scenarios
-
- System specs
-
- Given
-
a file named "spec/system/widget_system_spec.rb" with:
require "rails_helper" RSpec.describe "Widget management", :type => :system do before do driven_by(:rack_test) end it "enables me to create widgets" do visit "/widgets/new" fill_in "Name", :with => "My Widget" click_button "Create Widget" expect(page).to have_text("Widget was successfully created.") end end
- When
-
I run
rspec spec/system/widget_system_spec.rb
- Then
- the exit status should be 0
- And
- the output should contain "1 example, 0 failures"
Last published over 5 years ago by myronmarston.