Hi,

I am working on an application which uses different partials for mobile and 
desktop version. Both are served in every request. I need to test turbo 
code that replaces all of these partials. Mobile version even has different 
workflow compared to desktop app in some parts.

In short I want to have separate system tests for mobile and desktop 
version.

I thought I could achieve that by having different driven by in before 
block.

driven_by(:cuprite, screen_size: [1400, 1400], options: CUPRITE_OPTIONS)
driven_by(:cuprite, screen_size: [400, 800], options: CUPRITE_OPTIONS)

Unfortunately these settings are not respected. It seems that first system 
spec that sets driven_by is what rspec uses for entire test suite.

Is it possible to achieve separate system specs for mobile and desktop 
version and how?

Thank you,

Marko


-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rspec+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/fad54242-fa9d-4764-b215-119b23cfafd0n%40googlegroups.com.

Reply via email to