We can't chain not_to change .and not_to change in one rspec matcher call.
But the gem creators made for us some simple and very useful workaround:
Read moreWe can't chain not_to change .and not_to change in one rspec matcher call.
But the gem creators made for us some simple and very useful workaround:
Read moreThe problem with raise_error matcher in RSpec is common and it can be fixed in easy way.
Let's say we have situation like below:
subject(:service_call) { CarService.call }
it { expect(service_call).to raise_error(CarDatabaseConnectionError) }
If we call it like this it will get us an error.
1) CarUpdateService when fail
Failure/Error: raise CarDatabaseConnectionError
CarDatabaseConnectionError:
Can't connect with a custom car database.
Why it didn't pass the spec?
The problem is here:
Read moreCreating autocomplete with Rails and Semantic UI is very easy, and you should not have problem with that.
Semantic UI includes search library and all you need to do is just to write couple lines of code.
Read more
We are using shared examples if we have the same assertions inside one file.
This is how we can do it:
Read moreIf you want to check how fast is your request, and which version of your request will be more optimized, you should use Benchmark tool.
Read more