Sha256: 58bd44f343e3012c87690c1d7ddc13ad398d997b5da3c102ec4a5b46c09d1790
Contents?: true
Size: 419 Bytes
Versions: 5
Compression:
Stored size: 419 Bytes
Contents
module TestHelper def revert_intro_config(&block) clone = Intro.config.clone instance_exec(&block) Intro.instance_variable_set(:@config, clone) end def random_string ('a'..'z').to_a.shuffle.join end def unauthenticated_path Intro.config.unauthenticated_admin_path.presence || new_admin_session_path end def json_body JSON.parse(response.body).with_indifferent_access end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
intro-0.4.1 | spec/test_helper.rb |
intro-0.4.0 | spec/test_helper.rb |
intro-0.3.0 | spec/test_helper.rb |
intro-0.2.0 | spec/test_helper.rb |
intro-0.1.0 | spec/test_helper.rb |