These are chat archives for opal/opal

8th
May 2016
Austin Erlandson
@erlandsona
May 08 2016 13:17
Just use RSpec! That's the beauty of Opal!!! Yay!
Austin Erlandson
@erlandsona
May 08 2016 14:20
Anyone here who's using the React.rb stuff using Relay / GraphQL ruby as well?
I got the server piece of the GraphQL Ruby stuff working... Haven't opened up an endpoint for it yet but I'm trying to figure out how I would go about creating a React.rb Todo app with GraphQL / Relay / RSpec!!!
Martin Becker
@Thermatix
May 08 2016 14:35
to be blunt, I'm not a fan of rspec to be honest, I prefer minitest
but I don't know what test libs are available
Brock Wilcox
@awwaiid
May 08 2016 14:42
@Thermatix https://github.com/aost/opal-minitest suggests you might have your wish
(worth a try)
Martin Becker
@Thermatix
May 08 2016 16:25
Noice!
Austin Erlandson
@erlandsona
May 08 2016 16:39
@Thermatix I think I'm starting to get annoyed with RSpec / Rails too! I want to put my spec files next to their corresponding source files and RSpec is behaving very weird!
Martin Becker
@Thermatix
May 08 2016 17:44
@erlandsona you don't like having a separate spec folder?
Austin Erlandson
@erlandsona
May 08 2016 17:46
Nope, I prefer keeping all the files necessary for a feature under the same directory.
Martin Becker
@Thermatix
May 08 2016 17:48
fair do's
I prefer keeping them in a spec folder
personally I just like how minitest is well, mini
it's like 300 lines
compaired to rspec, that's tiny
Austin Erlandson
@erlandsona
May 08 2016 17:50
I mean yes, granted at the cost of being a more verbose syntax… Or if you disagree I would argue it’s certainly less expressive than RSpec. But then again as I mentioned I’m rather annoyed with RSpec at the moment as well so don’t take these comments as praise either...
Martin Becker
@Thermatix
May 08 2016 17:51
more verbose?
Austin Erlandson
@erlandsona
May 08 2016 19:33
I'm just really used to the describe/context syntax...
Martin Becker
@Thermatix
May 08 2016 22:57
you realise that minitest uses describe, it and so on and that you don't need context becuase you can nest describe blocks?
like this:
Austin Erlandson
@erlandsona
May 08 2016 22:58
Didn’t realize MiniTest had describe! Noice! Saweet!
Martin Becker
@Thermatix
May 08 2016 22:59
describe :Some_Class do
    describe '#some_function' do
        it 'does somthing' do
        end

        it 'does somthing else' do
        end
    end
end
how are you using it?
This message was deleted
Brock Wilcox
@awwaiid
May 08 2016 23:00
minitest can be used with either the 'spec' style or a more junity style
Martin Becker
@Thermatix
May 08 2016 23:01
junity?
what's that?
Brady Wied
@wied03
May 08 2016 23:07
I don't think describe vs. context is much of a differentiator. context is just an alias for describe in RSpec anyways. It mainly is for who's reading the test
the 'let' stuff, matchers, all of that I think is more what RSpec brings to the table
and not everyone needs or cares about that
@Thermatix - junity means a more junit-like syntax I bet
Austin Erlandson
@erlandsona
May 08 2016 23:30
@wied03 is correct, I do use let statements quite a bit. But I could do without those in favor of being able to have my spec files under my feature directory?!