Type with instance variable and two different rspec-rails version mentioned for the Gemfile