Skip to content

Instantly share code, notes, and snippets.

@nandooliveira
Forked from maxivak/00.md
Created July 27, 2019 04:23
Show Gist options
  • Save nandooliveira/4be914d2ff9d0f6ae21bf52cde30c8dd to your computer and use it in GitHub Desktop.
Save nandooliveira/4be914d2ff9d0f6ae21bf52cde30c8dd to your computer and use it in GitHub Desktop.
Using RSpec without Rails
gem install rspec
gem install rspec-expectations
rspec --init
# it creates
# .rspec
# spec/spec_helper.rb
# spec/features/mytest_spec.rb
RSpec.describe "Mytest", :type => :request do
describe "check smth" do
it "should be eq" do
expect(3).to eq(3)
end
end
end
rspec spec/features/mytest_spec.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment