-
I haven't had a chance to dig into this fully yet, but I've been running into this on a project.
```ruby
# Works as intended
expect(page).to have_css("h1", class: "text-xl", text: "A large headin…
-
The following syntax
```
describe Post do
context 'validations' do
subject { FactoryGirl.build(:post) }
it do
should validate_uniqueness_of(:slug).
scoped_to(:user_id).
…
-
Hey all,
Trying to get erector views loaded into a view spec similarly to the way haml works with rspec-rails. Doesn't seem to be working:
```
describe "welcome/sign_up.rb" do
it "renders the html…
-
I looked at the [code coverage report](https://codeclimate.com/github/rubocop-rspec/rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb/source), and it looks like we have a couple of lines of unt…
-
I have a Rails application composed of a mixture of ActiveRecord and Mongoid models.
I was able to write my unit tests until now the having configured my `rails_helper.rb` file has the following:
…
-
This worked in RSpec 2.14.1 not sure what changed leading up to RSpec 3.0.2. but it doesn't look like route_to changed much between the two versions.
``` ruby
describe ProductsController do
describ…
-
With json_spec 1.1.5 and the following test:
```ruby
it "matches json content with path" do
json = %({"item": {"id": "1"}})
json.should include_json(%({"id": "1"})).at_path("item")
…
-
Write your thoughts about the "[create only the data you need](http://betterspecs.org/#data)" best practice.
-
I noticed that in web search results, results from rspec.info have empty titles (or show inconsistent text), making it unclear what's on each page. The cause is that the `` tags are empty for most pag…
-
Trying to execute Thor test suite with rspec-expectations 3.11.0 + Ruby 3.1, I observe the following error:
~~~
1) Thor::Options#parse raises an error for unknown switches
Failure/Error: e…
voxik updated
2 years ago