diff --git a/lib/simple_websocket_vcr/cassette.rb b/lib/simple_websocket_vcr/cassette.rb index 7ee929e..6ba2fbd 100644 --- a/lib/simple_websocket_vcr/cassette.rb +++ b/lib/simple_websocket_vcr/cassette.rb @@ -29,10 +29,10 @@ def next_session if recording? erb_variables = @options[:reverse_substitution] ? @options[:erb] : nil session = if @using_json - RecordedJsonSession.new([], erb_variables) - else - RecordedYamlSession.new([], erb_variables) - end + RecordedJsonSession.new([], erb_variables) + else + RecordedYamlSession.new([], erb_variables) + end @sessions.push(session) @sessions.last else